import language from '../language/index.js'
global.coachViewUtil = {
  callAjaxByServiceName (apiName, paramObj, success, fail, flag) {
    if (typeof paramObj === 'string') {
      paramObj = paramObj.replace(/'/g, '"')
      paramObj = JSON.parse(paramObj)
    }
    paramObj.apiName = apiName
    httpBase(paramObj, success, fail)
  }
}
global.obj = {}
